package com.esyoga.yoyoga.util;

import org.apache.shiro.crypto.hash.SimpleHash;

/**
 * 密码MD5加密
 * @author YangTao
 */
public class EncryptionUtil {
    /**
     * 加密方法
     * @param password
     * @param phone：佐料
     * @return
     */
    public static String encryptionPwd(String password,String phone){
        String md5Pwd = new SimpleHash("MD5", password, phone, 1001).toString();
        return md5Pwd;
    }

   /* public static void main(String[] args) {
        String pass = encryptionPwd("111111","15881601897");
        System.out.println(pass);
    }*/
}
